<div id="tablecontent">
  <table class="testgrid" id="tableid">
    <thead>
      <tr>
        <th>id</th>
        <th>类别名</th>
        <th>操作</th>
      </tr>
    </thead>
    <tbody>
<?php
	foreach($category_list as $category)
	{
?>
      <tr id="DemoGrid">
	  	<td><?php echo $category->id; ?></td>
	  	<td><?php echo $category->name; ?></td>
		<td>
			<a href="/admin/category/delete/<?php echo $category->id; ?>" onclick="var bl=confirm('真要删除?'); if(bl){return true;} else {return false;}" class="rates_button">删除</a>
		</td>
      </tr>
<?php
	}
?>
    </tbody>
  </table>

<form id="inputForm" action="/admin/category/save" method="post">
      <div class="row clearfix">
        <label for="name">类别名:</label>
        <p><span>
          <input name="name" maxlength="100" id="name" class="inputs med required">
          </span><span id="NameError"></span></p>
      </div>

	  <div class="row clearfix">
        <input type="submit" name="submitBtn" id="submitBtn" class="submit" value="添加">
      </div>
    </form>
</div>

